projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f6f13a
)
gtkplacessidebar: Show drives with removable media
author
Ross Lagerwall
<rosslagerwall@gmail.com>
Sun, 27 Sep 2015 14:59:49 +0000
(15:59 +0100)
committer
Ross Lagerwall
<rosslagerwall@gmail.com>
Wed, 14 Oct 2015 16:38:25 +0000
(17:38 +0100)
Some drives have removable media that is not ejectable (e.g. a laptop's
SD card reader). Show volumes on these drives in the sidebar.
https://bugzilla.gnome.org/show_bug.cgi?id=755654
gtk/gtkplacessidebar.c
patch
|
blob
|
history
diff --git
a/gtk/gtkplacessidebar.c
b/gtk/gtkplacessidebar.c
index 2ee7e9e86d9688ec8599ecad2ac316fd0b11d209..d8a21908adcd843e2a667831112688a5b8940b23 100644
(file)
--- a/
gtk/gtkplacessidebar.c
+++ b/
gtk/gtkplacessidebar.c
@@
-840,7
+840,10
@@
is_removable_volume (GVolume *volume)
is_removable |= !id;
if (drive)
- is_removable |= g_drive_can_eject (drive);
+ {
+ is_removable |= g_drive_can_eject (drive);
+ is_removable |= g_drive_is_media_removable (drive);
+ }
if (mount)
is_removable |= (g_mount_can_eject (mount) && !g_mount_can_unmount (mount));